﻿
Namespace LightSwitchApplication

    Public Class LeasedAsset

        Private Sub LeasedAsset_Created()
            
        End Sub

        Private Sub LeaseBegin_Validate(results As EntityValidationResultsBuilder)
            ' results.AddPropertyError("<Error-Message>")
            If Me.LeaseEnd < Me.LeaseBegin Then
                results.AddPropertyError("Lease End date should be not later that Lease Start date.")
            End If
        End Sub
    End Class

End Namespace
